﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SistemaDeBastanteodePoderes.Dominio.Poder>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>CREAR PODER</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Datos</legend>
            
<%--            <div class="editor-label"><%: Html.LabelFor(model => model.Codigo) %></div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Codigo) %>
                <%: Html.ValidationMessageFor(model => model.Codigo) %>
            </div>--%>
            
            <div class="editor-label"><%: Html.LabelFor(model => model.CodCorto) %></div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CodCorto) %>
                <%: Html.ValidationMessageFor(model => model.CodCorto) %>
            </div>
            
            <div class="editor-label"><%: Html.LabelFor(model => model.NomPoder) %></div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NomPoder) %>
                <%: Html.ValidationMessageFor(model => model.NomPoder) %>
            </div>

            <div class="editor-label">Tipo Servicio</div>
            <div class="editor-field"> 
                <%: Html.DropDownList("TipoServ", (IEnumerable<SelectListItem>)TempData["tipoServicio"])%>
            </div>
            
            <p><input type="submit" value="Create" /></p>
        </fieldset>

    <% } %>

    <div><%: Html.ActionLink("Back to List", "Index") %></div>

</asp:Content>

